﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.ServiceProcess;


namespace SocketPolicyService
{
    [RunInstaller(true)]
    public partial class SocketServiceInstaller : Installer
    {
        private ServiceProcessInstaller ServiceProcessInstaller;
        private ServiceInstaller ServiceInstaller;


        public SocketServiceInstaller()
        {
            CustomInitializeComponent();
        }


        private void CustomInitializeComponent()
        {
            this.ServiceProcessInstaller = new ServiceProcessInstaller();
            this.ServiceInstaller = new ServiceInstaller();
            // 
            // serviceProcessInstaller1
            // 
            this.ServiceProcessInstaller.Account = ServiceAccount.LocalSystem;
            this.ServiceProcessInstaller.Password = null;
            this.ServiceProcessInstaller.Username = null;
            // 
            // serviceInstaller
            // 
            this.ServiceInstaller.ServiceName = Program.SERVICE_NAME;
            this.ServiceInstaller.StartType = ServiceStartMode.Automatic;
            // 
            // ProjectInstaller
            // 
            this.Installers.AddRange(new System.Configuration.Install.Installer[] {
                this.ServiceProcessInstaller,
				this.ServiceInstaller
            });

        }
    }
}
